#ifndef __PUB_TYPE_H__
#define __PUB_TYPE_H__

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <glob.h>
#include <time.h>
#include <iconv.h>
#include <fcntl.h>
#include <dlfcn.h>
#include <errno.h>
#include <unistd.h>
#include <dirent.h>
#include <stddef.h>
#include <stdarg.h>
#include <sys/ipc.h>
#include <sys/shm.h>
#include <sys/msg.h>
#include <sys/sem.h>
#include <inttypes.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <sys/timeb.h>
#include <sys/timeb.h>
#include <arpa/inet.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netinet/tcp.h>

#define SW_OK          0
#define SW_ERROR      -1
#define SW_ERR        -1
#define SW_AGAIN      -2
#define SW_BUSY       -3
#define SW_DONE       -4
#define SW_DECLINED   -5
#define SW_ABORT      -6
#define SW_EXIST	1

#define SW_INVALID_FD		-1

#define	SW_PUBLIC		extern
#define SW_PROTECTED		static

#define true (1)
#define	false (0)
#define bool char

/*esw type rename*/
typedef u_char		sw_uchar_t;
typedef char		sw_char_t;
typedef int             sw_fd_t;
typedef int16_t		sw_int16_t;
typedef	uint16_t	sw_uint16_t;
typedef int32_t		sw_int32_t;
typedef uint32_t	sw_uint32_t;
typedef int64_t		sw_int64_t;
typedef uint64_t	sw_uint64_t;
typedef intptr_t        sw_int_t;
typedef uintptr_t       sw_uint_t;
typedef int             sw_err_t;
typedef uid_t		sw_uid_t;
typedef gid_t		sw_gid_t;
typedef int		sw_lck_t;
typedef time_t		sw_time_t;
typedef int		sw_flag_t;
typedef long long	sw_tans_t;
typedef struct stat     sw_file_info_t;

#endif

